package tmp;

// Generated 04-nov-2009 18:40:40 by Hibernate Tools 3.2.4.GA

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * ExpedientTypePhaseExpedients generated by hbm2java
 */
@Entity
@Table(name = "expedient_type_phase_expedients", catalog = "fmanzano_gem")
public class ExpedientTypePhaseExpedients implements java.io.Serializable {

	private Integer tfeId;
	private Phase phase;
	private ExpedientType expedientType;
	private InternalUser internalUser;
	private Expedient expedient;
	private Date tfeEndDate;
	private String tfeNotes;
	private Date tfeStartDate;
	private boolean tfeStatus;

	public ExpedientTypePhaseExpedients() {
	}

	public ExpedientTypePhaseExpedients(boolean tfeStatus) {
		this.tfeStatus = tfeStatus;
	}

	public ExpedientTypePhaseExpedients(Phase phase,
			ExpedientType expedientType, InternalUser internalUser,
			Expedient expedient, Date tfeEndDate, String tfeNotes,
			Date tfeStartDate, boolean tfeStatus) {
		this.phase = phase;
		this.expedientType = expedientType;
		this.internalUser = internalUser;
		this.expedient = expedient;
		this.tfeEndDate = tfeEndDate;
		this.tfeNotes = tfeNotes;
		this.tfeStartDate = tfeStartDate;
		this.tfeStatus = tfeStatus;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "TFE_ID", unique = true, nullable = false)
	public Integer getTfeId() {
		return this.tfeId;
	}

	public void setTfeId(Integer tfeId) {
		this.tfeId = tfeId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "FAS_ID")
	public Phase getPhase() {
		return this.phase;
	}

	public void setPhase(Phase phase) {
		this.phase = phase;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "TEX_ID")
	public ExpedientType getExpedientType() {
		return this.expedientType;
	}

	public void setExpedientType(ExpedientType expedientType) {
		this.expedientType = expedientType;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "USU_LOGIN")
	public InternalUser getInternalUser() {
		return this.internalUser;
	}

	public void setInternalUser(InternalUser internalUser) {
		this.internalUser = internalUser;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "EXP_ID")
	public Expedient getExpedient() {
		return this.expedient;
	}

	public void setExpedient(Expedient expedient) {
		this.expedient = expedient;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "TFE_END_DATE", length = 10)
	public Date getTfeEndDate() {
		return this.tfeEndDate;
	}

	public void setTfeEndDate(Date tfeEndDate) {
		this.tfeEndDate = tfeEndDate;
	}

	@Column(name = "TFE_NOTES")
	public String getTfeNotes() {
		return this.tfeNotes;
	}

	public void setTfeNotes(String tfeNotes) {
		this.tfeNotes = tfeNotes;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "TFE_START_DATE", length = 10)
	public Date getTfeStartDate() {
		return this.tfeStartDate;
	}

	public void setTfeStartDate(Date tfeStartDate) {
		this.tfeStartDate = tfeStartDate;
	}

	@Column(name = "TFE_STATUS", nullable = false)
	public boolean isTfeStatus() {
		return this.tfeStatus;
	}

	public void setTfeStatus(boolean tfeStatus) {
		this.tfeStatus = tfeStatus;
	}

}
